package com.rfid.entityMapper;

import com.entitymapper.field.FieldMapperToRead;
import com.entitymapper.field.ResultSet;
import com.teatrace.model.Product;

/**
 * product entity mapper to read
 * @author hhf
 */
public class ProductFieldMapperToRead implements FieldMapperToRead{

	/**
	 * 读product对象
	 * 返回 product
	 */
	@Override
	public Product mappering(ResultSet rs){
		Product product = new Product();
		product.setProductNum(rs.getString("productNum"));
		product.setName(rs.getString("name"));
		return product;
	}

}
